<?php

# PMB Online
# Aplikasi PMB Online untuk Pendaftaran Calon Mahasiswa di PT/PTS Indonesia
# 
# version 1.0
# class bukti_bayar
# file
# created Feb 7, 2013 6:39:15 AM
# 
# (c)2012, arif.laksito@gmail.com

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
?>
<h1>Perkiraan Biaya</h1>

<table style="width: 95%">  
    <tr>
        <td style="width: 30%">No.Pendaftaran</td>
        <td><?php echo $mhs['nodaf']?></td>
    </tr>    
    <tr>
        <td>Jenis Pendaftaran</td>
        <td><?php echo ($mhs['status_daftar']==1)?'Pindahan':'Reguler'?></td>
    </tr>    
    <tr>
        <td>Gelombang Pendaftaran</td>
        <td><?php echo $mhs['nama_gel']?></td>
    </tr>    
    <tr>
        <td>Nama Lengkap</td>
        <td><?php echo $mhs['nama_lengkap']?></td>
    </tr>    
    <tr>
        <td>Tempat &amp; Tgl Lahir</td>
        <td><?php echo $mhs['tempat_lahir'].', '.mdate('%d %M %Y',mysql_to_unix($mhs['tgl_lahir']))?></td>
    </tr>     
    <tr>
        <td>Tanggal Daftar</td>
        <td><?php echo mdate('%d %M %Y',mysql_to_unix($mhs['tgl_daftar']))?></td>
    </tr>
</table>    
<br />

<?php $jur = explode(',', $mhs['pilihan_jur'])?>

<h4>Perkiraan Biaya D3</h4>

<?php if(count($d3)==0):?>
	Biaya untuk Jenjang D3 pada Periode saat ini belum di inputkan
<?php else:?>	
<?php $d3_total = ($d3['spa']+$d3['oka']+$d3['spp_tetap'])-$d3['beasiswa']?>

<table style="width: 70%" cellpadding="0" cellspacing="0" border="0" class="table table-bordered">
    <tr>
        <td>Biaya SPA</td>
        <td></td>
        <td style="text-align: right"><?php echo number_format($d3['spa']) ?></td>        
    </tr>
    <tr>
        <td>Biaya OKA</td>
        <td></td>
        <td style="text-align: right"><?php echo number_format($d3['oka']) ?></td>        
    </tr>
    <tr>
        <td>Biaya SPP Tetap</td>
        <td></td>
        <td style="text-align: right"><?php echo number_format($d3['spp_tetap']) ?></td>        
    </tr>
    <tr>
        <td>Beasiswa</td>
        <td style="text-align: right"><?php echo number_format($d3['beasiswa']) ?></td>        
        <td></td>        
    </tr>
    <tr>
        <th>Total Biaya Reg. Awal</th>
        <th colspan="2" style="text-align: right"><?php echo number_format($d3_total)?></th>                
    </tr>
</table>
<?php endif?>

<h4>Perkiraan Biaya S1</h4>

<?php if(count($s1)==0):?>
	Biaya untuk Jenjang S1 pada Periode saat ini belum di inputkan
<?php else:?>
<?php $s1_total = ($s1['spa']+$s1['oka']+$s1['spp_tetap'])-$s1['beasiswa']?>

<table style="width: 70%" cellpadding="0" cellspacing="0" border="0" class="table table-bordered">
    <tr>
        <td>Biaya SPA</td>
        <td></td>
        <td style="text-align: right"><?php echo number_format($s1['spa']) ?></td>        
    </tr>
    <tr>
        <td>Biaya OKA</td>
        <td></td>
        <td style="text-align: right"><?php echo number_format($s1['oka']) ?></td>        
    </tr>
    <tr>
        <td>Biaya SPP Tetap</td>
        <td></td>
        <td style="text-align: right"><?php echo number_format($s1['spp_tetap']) ?></td>        
    </tr>
    <tr>
        <td>Beasiswa</td>
        <td style="text-align: right"><?php echo number_format($s1['beasiswa']) ?></td>        
        <td></td>        
    </tr>
    <tr>
        <th>Total Biaya Reg. Awal</th>
        <th colspan="2" style="text-align: right"><?php echo number_format($s1_total)?></th>                
    </tr>
</table>
<?php endif?>